﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <base target="_self" />
    <link href="<%=basePath %>Styles/css.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath %>Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath %>Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="<%=basePath %>Scripts/selectProject.js" type="text/javascript"></script>
    <script src="<%=basePath %>Scripts/IndexManager.js" type="text/javascript"></script>
    <script type="text/javascript">
        function page_Close() {
            if (window.parent != null) {
                window.parent.close();
            }
            else {
                window.close();
            }
        }
    </script>
</head>
<body>
    <form method="post" action="insert.do" id="form1">
    <div id="divTwo">
        <table width="100%" border="0" cellpadding="2" cellspacing="2" class="table_list1">
            <tr>
                <td width="15%" class="table_list1_style1">
                    <span style="color: Red">*</span> 项目名称
                </td>
                <td width="35%" class="table_list1_style2">
                    <input name="projectName" id="projectName" type="text"  />
                    <span id="RequiredFieldValidator8" style="display: none;">不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="table_list1_style1">
                    <span style="color: Red">*</span> 项目开始时间
                </td>
                <td class="table_list1_style2">

                    <input name="startTime" id="startTime" type="text"  
                        onfocus="WdatePicker({ readOnly: true,skin:'whyGreen',dateFmt:'HH:mm'})" />
                    <span id="RequiredFieldValidator9" style="display: none;">不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="table_list1_style1">
                    <span style="color: Red">*</span> 项目结束时间
                </td>
                <td class="table_list1_style2">
                    <input name="endTime" id="endTime" type="text" 
                        onfocus="WdatePicker({ readOnly: true,skin:'whyGreen',dateFmt:'HH:mm'})" />
                    <span id="RequiredFieldValidator2" style="display: none;">不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="table_list1_style1">
                    <span style="color: Red">*</span> 项目负责人编号
                </td>
                <td class="table_list1_style2">
                    <input name="createUserId" id="createUserId" type="text"  
                        onfocus="WdatePicker({ readOnly: true,skin:'whyGreen',dateFmt:'H:mm'})" />
                    <span id="RequiredFieldValidator4" style="display: none;">不能为空</span>
                </td>
            </tr>
            <tr id="isVisible">
                <td class="table_list1_style1">
                    <span style="color: Red">*</span> 备注
                </td>
                <td class="table_list1_style2">
                    <input name="remark" id="remark" type="text" 
                        onfocus="WdatePicker({ readOnly: true,skin:'whyGreen',dateFmt:'H:mm'})" />
                    <span id="RequiredFieldValidator6" style="display: none;">不能为空</span>
                </td>
            </tr>
            <tr>
                <td class="table_list1_style1">
                    &nbsp;
                </td>
                <td class="table_list1_style2">
                    <input type="submit" name="btnUpdate" value="添加" id="btnUpdate" tabindex="1" class="button" />
                    &nbsp;&nbsp;
                    <input id="btnBack" type="button" class="button" value="关闭" onclick="page_Close()" />
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script type="text/javascript"> 
//<![CDATA[
        var Page_Validators = new Array(document.getElementById("RequiredFieldValidator8"), document.getElementById("RequiredFieldValidator9"), document.getElementById("RequiredFieldValidator2"), document.getElementById("RequiredFieldValidator4"), document.getElementById("RequiredFieldValidator6"));
//]]>
    </script>
    <script type="text/javascript"> 
//<![CDATA[
        var RequiredFieldValidator8 = document.all ? document.all["RequiredFieldValidator8"] : document.getElementById("RequiredFieldValidator8");
        RequiredFieldValidator8.controltovalidate = "txtRespectivePro";
        RequiredFieldValidator8.errormessage = "不能为空";
        RequiredFieldValidator8.display = "Dynamic";
        RequiredFieldValidator8.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
        RequiredFieldValidator8.initialvalue = "";
        var RequiredFieldValidator9 = document.all ? document.all["RequiredFieldValidator9"] : document.getElementById("RequiredFieldValidator9");
        RequiredFieldValidator9.controltovalidate = "txtMorningBeginTime";
        RequiredFieldValidator9.errormessage = "不能为空";
        RequiredFieldValidator9.display = "Dynamic";
        RequiredFieldValidator9.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
        RequiredFieldValidator9.initialvalue = "";
        var RequiredFieldValidator2 = document.all ? document.all["RequiredFieldValidator2"] : document.getElementById("RequiredFieldValidator2");
        RequiredFieldValidator2.controltovalidate = "txtMorningEndTime";
        RequiredFieldValidator2.errormessage = "不能为空";
        RequiredFieldValidator2.display = "Dynamic";
        RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
        RequiredFieldValidator2.initialvalue = "";
        var RequiredFieldValidator4 = document.all ? document.all["RequiredFieldValidator4"] : document.getElementById("RequiredFieldValidator4");
        RequiredFieldValidator4.controltovalidate = "txtAfternoonBeginTime";
        RequiredFieldValidator4.errormessage = "不能为空";
        RequiredFieldValidator4.display = "Dynamic";
        RequiredFieldValidator4.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
        RequiredFieldValidator4.initialvalue = "";
        var RequiredFieldValidator6 = document.all ? document.all["RequiredFieldValidator6"] : document.getElementById("RequiredFieldValidator6");
        RequiredFieldValidator6.controltovalidate = "txtAfternoonEndTime";
        RequiredFieldValidator6.errormessage = "不能为空";
        RequiredFieldValidator6.display = "Dynamic";
        RequiredFieldValidator6.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
        RequiredFieldValidator6.initialvalue = "";
//]]>
    </script>
    <script type="text/javascript"> 
//<![CDATA[

        var Page_ValidationActive = false;
        if (typeof (ValidatorOnLoad) == "function") {
            ValidatorOnLoad();
        }

        function ValidatorOnSubmit() {
            if (Page_ValidationActive) {
                return ValidatorCommonOnSubmit();
            }
            else {
                return true;
            }
        }
        //]]>
    </script>

</body>
</html>
